<template>
	<u-popup :show="showPopupCard" title="二维码" mode="center" :safeAreaInsetBottom="false"
		@close="showPopupCard = false" bgColor="transparent">
		<view class="slot-content">
			<view class="slot-content-img">
				<image :src="url" mode="widthFix" :show-menu-by-longpress="true"></image>
			</view>
		</view>
	</u-popup>
</template>

<script>
	export default {
		props: ['url'],
		data(){
			return {
				showPopupCard: false
			}
		},
		methods:{
			show() {
				this.showPopupCard = true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.slot-content {
		width: 100%;
	
		.slot-content-img {
			width: 600rpx;
			box-sizing: border-box;
			padding: 30rpx;
			border-radius: 30rpx;
	
			image {
				width: 100%;
			}
		}
	}
	
</style>